package sanshi.contect.adaper;

import java.io.*;

public class InputOrStream {
    public static void main(String[] args) throws IOException {
        FileInputStream fileInputStream = new FileInputStream("E:\\a.txt");

        //这个转换流就是一个是配置模式
        InputStreamReader streamReader = new InputStreamReader(fileInputStream);

        BufferedReader bf = new BufferedReader(streamReader);
        String line = "";
        while (line != null && !line.equals("")){
            System.out.println(line);
        }
        bf.close();
    }
}
